Skip to content

Accelerate RVT model construction and Compact JSON export - #309

Merged
mahach666 merged 3 commits into
mainfrom
codex/rvt-reader-performance
Nov 25, 2026
Merged

mahach666 merged 3 commits into
mainfrom
codex/rvt-reader-performance

Conversation

@mahach666

@mahach666 mahach666 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Build independent RVT elements in parallel and reuse symbol-local geometry across placements.
  • Inflate partition segments in bounded parallel batches while preserving framing checks and segment order.
  • Reuse validated wall partition data, avoid repeat GRep decoding, and batch native Tf decoding while preserving record order.
  • Reduce temporary allocations during record scans, geometry decoding, and parameter post-processing.
  • Prepare Compact JSON properties in bounded batches and write rows in the existing order.
  • Enable concurrent server GC for the CLI.

The branch builds on the current seekable-stream framing and read progress implementation.

Validation

Revision Full CLI read and Compact JSON export Peak working set
main baseline 287.20 s 35.67 GiB
Previous PR revision 153.15 s 32.14 GiB
383ee5c, run 1 73.53 s 27.29 GiB
383ee5c, run 2 72.55 s 27.47 GiB
  • Both runs of 383ee5c produced Compact JSON that matched the benchmark reference byte for byte.
  • On a separate test fixture, IFC, full JSON, Compact JSON, solid quantities, and parameter facts matched main byte for byte.
  • The Release solution build passed. .NET 8 passed 12,040 tests and .NET 10 passed 12,044. Each skipped 449 tests.
  • The large fixture's full-model fingerprint comparison against current main remains open.

@mahach666
mahach666 marked this pull request as ready for review November 25, 2026 09:37
mahach666 and others added 2 commits November 25, 2026 12:54
Pending native-parameter blocks held the walker's contiguous segment, up to 1.4 GB, until the next flush, so two segments could be live on large partitions. Queue only the block through SegmentSources.Retain, as the deferred geometry readers already do.
@mahach666
mahach666 merged commit c54aa06 into main Nov 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant